package moodish.client;


public class Friend {
	
	private String name;
	private String mood;
	private boolean changed;

	public Friend(String name, String mood) {
		this.name = name;
		this.mood = mood;
		changed=false;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMood() {
		return mood;
	}

	public void setMood(String mood) {
		changed=true;
		this.mood = mood;
	}
	@Override
	public String toString() {
		
		if(changed)
		return "" + this.getName() + " is feeling " + this.getMood();
		else
			return "" + this.getName() + " is online";
	}
	
}
